package com.android.aishangauction.model.group;

import com.google.gson.Gson;
import com.zhy.http.okhttp.callback.Callback;

import okhttp3.Response;

/**
 * Created by Administrator on 2017/6/29.
 */

public abstract class DirectBuyGoodsListCallback extends Callback<DirectBuyGoodsList> {

    @Override
    public DirectBuyGoodsList parseNetworkResponse(Response response, int id) throws Exception {
        String string = response.body().string();
        DirectBuyGoodsList directBuyGoodsList = new Gson().fromJson(string, DirectBuyGoodsList.class);
        return directBuyGoodsList;
    }
}
